<?php

namespace App\Models\Admin;

use Illuminate\Database\Eloquent\Model;

class BonusPoolTwo extends Model
{
    protected $fillable = [
        'id', 'store_id', 'good_id', 'bonus_pool_two',
        'team_month', 'team_year', 'team_recommend', 'team_fund', 'created_at', 'updated_at'
    ];

    public function updateData($data)
    {
        $this->where('store_id', $data['store_id'])->where('good_id', $data['good_id'])->update($data);
    }
}
